package quanquan.online.dao.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import quanquan.online.bean.GiftBean;
import quanquan.online.dao.IGiftDao;

public class GiftDaoImpl extends HibernateDaoSupport implements IGiftDao {

	public void addGift(GiftBean giftBean) {
		this.getHibernateTemplate().save(giftBean);
	}

	public GiftBean getGiftReward(int giftId) {
		GiftBean giftBean = null;
		giftBean = (GiftBean) this.getHibernateTemplate().get(GiftBean.class, giftId);
		return giftBean;
	}

}
